package com.aisino.service.jobs.extend;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.IJobHandler;

/**
 * @author guochuantao
 * @version 1.0
 * @description bean模式，采取继承JobHandler抽象类实现执行器注册到调度中心
 * @since 2024-08-10 ❤️ 💕 16:36 💕
 */
public class ExtendJob extends IJobHandler {
    @Override
    public void execute() throws Exception {
        //业务逻辑
        for (int i = 0; i < 3; i++) {
            XxlJobHelper.log("extend for run by" + i);
            System.out.println("i = " + i);
        }
        System.out.println("继承抽象类的extendJob执行器执行了");
        XxlJobHelper.log("继承抽象类的extendJob执行器执行了");
    }
}
